package com.zhuiyun.project.api.monitor.controller;

import com.zhuiyun.project.api.monitor.entity.Server;
import com.zhuiyun.project.common.response.CommonResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ServerController
 * @Description TODO
 * @Author lzy
 * @Date 2023/7/24 9:04
 **/
@RequestMapping("/monitor/server")
@RestController
public class ServerController {

    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping("/getInfo")
    public CommonResult getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return CommonResult.ok(server);
    }


}
